<div class="entry header">
	<div class="head">
		<div class="left"><?php echo ucfirst($this->quest->enonce)?></div>
		<div class="right"><a href="<?php echo $this->url(array('module'=>'prof','controller'=>'quest','action'=>'edit','qcm'=>$this->quest->id_qcm,'quest'=>$this->quest->num_quest),'default',true)?>">Edit</a> - <a href="<?php echo $this->url(array('module'=>'prof','controller'=>'quest','action'=>'delete','qcm'=>$this->quest->id_qcm,'quest'=>$this->quest->num_quest),'default',true)?>">Delete</a></div>
	</div>
	<div class="bottom"></div>
</div>
<div class="indexLinks"><a href="<?php echo $this->url(array('module'=>'prof','controller'=>'qcm','action'=>'view','qcm'=>$this->quest->id_qcm),'default',true)?>">Back</a><a href="<?php echo $this->url(array('module'=>'prof','controller'=>'rep','action'=>'add','qcm'=>$this->quest->id_qcm,'quest'=>$this->quest->num_quest),'default',true)?>">Add an answer</a></div>
<div id="questList">
<?php foreach($this->entries as $entry):?>
<div class="entry">
	<div class="head">
		<div class="left"><?php echo $entry->num_rep.' | '.$entry->texte?></div>
		<div class="right"><a href="<?php echo $this->url(array('module'=>'prof','controller'=>'rep','action'=>'edit','qcm'=>$entry->id_qcm,'quest'=>$entry->num_quest,'rep'=>$entry->num_rep),'default',true)?>">Edit</a> - <a href="<?php echo $this->url(array('module'=>'prof','controller'=>'rep','action'=>'delete','qcm'=>$entry->id_qcm,'quest'=>$entry->num_quest,'rep'=>$entry->num_rep),'default',true)?>">Delete</a></div>
	</div>
	<br style="clear: both;"/>
</div>
<?php endforeach;?>
</div>
<?php echo $this->paginationControl($this->entries, 'Elastic', 'pagination_controll.phtml')?>